package com.lugea.esdemo.configuration;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author enluw
 * @date 2019/8/19
 * @description
 */

@ConfigurationProperties(prefix = "elasticsearch.client")
@Component
public class EsClientProperties {
    private String host;
    private int restport;
    private int tcpport;
    private String clusterName;

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getRestport() {
        return restport;
    }

    public void setRestport(int restport) {
        this.restport = restport;
    }

    public int getTcpport() {
        return tcpport;
    }

    public void setTcpport(int tcpport) {
        this.tcpport = tcpport;
    }

    public String getClusterName() {
        return clusterName;
    }

    public void setClusterName(String clusterName) {
        this.clusterName = clusterName;
    }
}
